<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>开始编写一个自己的模块：notification</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body>

<script src="../layui/layui.js" charset="utf-8"></script>
<script>

    layui.config({base: '../mods/'}).use('notification', function(){
        var $ = layui.$
            ,notification = layui.notification;

        notification.open('hello');
    });
</script>
</body>
</html>